package com.github.ghsea.scheduler.util;

import cn.hutool.core.net.NetUtil;

/**
 * @author guhai
 * @since 2021/6/19 9:56
 */
public class NetUtils {

    public static String getLocalHost(){
        return NetUtil.getLocalhost().getHostName();
    }

    public static void main(String[] args) {
        System.out.println(getLocalHost());
    }
}
